﻿body {
    margin: 0;
}

.help {
    position: absolute;
    top: 0;
    left: 0;
    margin: 20px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

body.light {
    --background-color: #F9F9F9;
    --logo-src: url(evergine-logo-dark.png);
    --text-color: #808080;
    --box-background-color: #FFFFFF;
    --box-border-color: #F2F2F2;
    --box-shadow-color: rgba(0, 0, 0, 0.1);
    --loading-bar-background-color: #E3E3E3;
}

body.dark {
    --background-color: #1D1D1D;
    --logo-src: url(evergine-logo-light.png);
    --text-color: #FFFFFF;
    --box-background-color: #212121;
    --box-border-color: #262626;
    --box-shadow-color: rgba(0, 0, 0, 0.25);
    --loading-bar-background-color: #262626;
}

html {
    overflow: hidden;
}

#splash {
    background: var(--background-color);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

#splash > #splash-content {
    --content-padding: 10px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    height: 120px;
    margin: 0 auto;
    max-width: 600px;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--box-border-color);
    box-sizing: border-box;
    box-shadow: 0px 8px 22px var(--box-shadow-color);
    color: var(--text-color);
    font-family: "Barlow";
    font-size: 0.875em;
    background-color: var(--box-background-color);
    padding: var(--content-padding);
}

#splash > #splash-content > .logo-container {
    flex: 50%;
}

#splash > #splash-content > .progress {
    flex: 50%;
}

#splash > #splash-content > .progress > *:first-child {
    margin: 0 30px;
}

#splash .logo-img {
    content: var(--logo-src);
    max-width: 100%;
}

#splash .loading-bar-container {
    margin-top: 10px;
    background-color: var(--loading-bar-background-color);
}

#splash > #splash-content .separator {
    width: 1px;
    background-color: var(--box-border-color);
    height: 100%;
    float: right;
    position: absolute;
    top: 0px;
    right: 50%;
    display: inline-block;
}

.progress-bar {
    --progress-bar-color: #3348FF;
    background-color: var(--progress-bar-color);
    height: 8px;
    width: 0%;
}

.progress-bar.progress-infinite {
    animation: kitt 1s ease infinite;
    background-image: linear-gradient(to right, var(--progress-bar-color) 0%, var(--loading-bar-background-color) 50%, var(--progress-bar-color) 100%);
    background-size: 300% 100%;
    width: 100%;
}

@keyframes kitt {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}
